function dialogComponentProperties() {
    var compId = document.getElementsByClassName('row_selected')[0].id;
     $.ajax({
        "url":'a_component_properties',
        "data":{"componentId":compId},
        "type":'GET',
        "success":function(htmlData) {
            $.Dialog({
                "title": "Свойства оборудования",
                "draggable": true,
                "content": htmlData,
                "width" : 650
            });
        }
    });
}

function submitComponentData() {
    var string = $('#componentForm').serialize();
    $.ajax({
       "url":'a_edit_component_data',
       "type":'POST',
       "data":string,
       "success":function(data){
           var err = $(data).find('#cp_validation_error').val();
                    if (err === 'false') {
                        
                        dialogSuccessfulClose('Изменения приняты.');
                        
                        redrawDataTable('component_table');
                        
                    } else {
                        $('div.window div.content')[0].innerHTML = data;
                    }
       }
    });
}